/*
 * XML Type:  InterTransactionRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InterTransactionRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InterTransactionRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InterTransactionRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionRequestImpl implements net.ofx.types.x2003.x04.InterTransactionRequest
{
    
    public InterTransactionRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INTERRQ$0 = 
        new javax.xml.namespace.QName("", "INTERRQ");
    private static final javax.xml.namespace.QName INTERMODRQ$2 = 
        new javax.xml.namespace.QName("", "INTERMODRQ");
    private static final javax.xml.namespace.QName INTERCANRQ$4 = 
        new javax.xml.namespace.QName("", "INTERCANRQ");
    
    
    /**
     * Gets the "INTERRQ" element
     */
    public net.ofx.types.x2003.x04.InterRequest getINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterRequest target = null;
            target = (net.ofx.types.x2003.x04.InterRequest)get_store().find_element_user(INTERRQ$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTERRQ" element
     */
    public boolean isSetINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERRQ$0) != 0;
        }
    }
    
    /**
     * Sets the "INTERRQ" element
     */
    public void setINTERRQ(net.ofx.types.x2003.x04.InterRequest interrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterRequest target = null;
            target = (net.ofx.types.x2003.x04.InterRequest)get_store().find_element_user(INTERRQ$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterRequest)get_store().add_element_user(INTERRQ$0);
            }
            target.set(interrq);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERRQ" element
     */
    public net.ofx.types.x2003.x04.InterRequest addNewINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterRequest target = null;
            target = (net.ofx.types.x2003.x04.InterRequest)get_store().add_element_user(INTERRQ$0);
            return target;
        }
    }
    
    /**
     * Unsets the "INTERRQ" element
     */
    public void unsetINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERRQ$0, 0);
        }
    }
    
    /**
     * Gets the "INTERMODRQ" element
     */
    public net.ofx.types.x2003.x04.InterModRequest getINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterModRequest target = null;
            target = (net.ofx.types.x2003.x04.InterModRequest)get_store().find_element_user(INTERMODRQ$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTERMODRQ" element
     */
    public boolean isSetINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERMODRQ$2) != 0;
        }
    }
    
    /**
     * Sets the "INTERMODRQ" element
     */
    public void setINTERMODRQ(net.ofx.types.x2003.x04.InterModRequest intermodrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterModRequest target = null;
            target = (net.ofx.types.x2003.x04.InterModRequest)get_store().find_element_user(INTERMODRQ$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterModRequest)get_store().add_element_user(INTERMODRQ$2);
            }
            target.set(intermodrq);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERMODRQ" element
     */
    public net.ofx.types.x2003.x04.InterModRequest addNewINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterModRequest target = null;
            target = (net.ofx.types.x2003.x04.InterModRequest)get_store().add_element_user(INTERMODRQ$2);
            return target;
        }
    }
    
    /**
     * Unsets the "INTERMODRQ" element
     */
    public void unsetINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERMODRQ$2, 0);
        }
    }
    
    /**
     * Gets the "INTERCANRQ" element
     */
    public net.ofx.types.x2003.x04.InterCancellationRequest getINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.InterCancellationRequest)get_store().find_element_user(INTERCANRQ$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTERCANRQ" element
     */
    public boolean isSetINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERCANRQ$4) != 0;
        }
    }
    
    /**
     * Sets the "INTERCANRQ" element
     */
    public void setINTERCANRQ(net.ofx.types.x2003.x04.InterCancellationRequest intercanrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.InterCancellationRequest)get_store().find_element_user(INTERCANRQ$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterCancellationRequest)get_store().add_element_user(INTERCANRQ$4);
            }
            target.set(intercanrq);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERCANRQ" element
     */
    public net.ofx.types.x2003.x04.InterCancellationRequest addNewINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.InterCancellationRequest)get_store().add_element_user(INTERCANRQ$4);
            return target;
        }
    }
    
    /**
     * Unsets the "INTERCANRQ" element
     */
    public void unsetINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERCANRQ$4, 0);
        }
    }
}
